$(function() {
	$.get("exit.do");
	$("#loginBtn").click(function() {
		$("#login").ajaxSubmit({
			beforeSubmit: function() {
				/*
				if($("#account").val().trim() == "" || $("#pwd").val().trim() == "") {
					alert("账号密码不可为空");
					return false;
				}
				*/
			},
			success: function(data) {
				if(data == "success") {
					location.href = "index.html";
				} else {
					alert(" 用户名或密码错误，登录失败");
				}
			}
		});
	});
});